import time

from selenium import webdriver
from selenium.webdriver.common.by import By
d = webdriver.Chrome() #C大写 打开谷歌浏览器
d.maximize_window()
d.get('https://www.baidu.com/')
time.sleep(3)
d.get('https://www.taobao.com/')
time.sleep(3)
d.refresh()  # 刷新
time.sleep(3)
d.back()  # 返回
time.sleep(3)
d.forward()  # 前进
time.sleep(3)

d.quit()
